<template>
  <div>
    <router-link to="/main" tag="a" style="margin-left: 70%"> <span>返回主页面</span></router-link>
    <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column prop="id" label="编号" width="180"></el-table-column>
      <el-table-column prop="username" label="姓名" width="180"></el-table-column>
      <el-table-column prop="sex" label="性别"></el-table-column>
      <el-table-column prop="phone" label="手机号"></el-table-column>
      <el-table-column prop="mail" label="邮箱"></el-table-column>
      <el-table-column prop="idnumber" label="身份证号"></el-table-column>
      <el-table-column prop="state" label="状态"></el-table-column>
    </el-table>
  </div>
</template>

<script>
import {data} from "autoprefixer";

export default {
  name: "FuserSelf",
  data() {
    return {
      tableData: [],
      dialogFormVisible2: false,
      formLabelWidth: '120px',
    }
  },
  created() {
    this.find()
  },
  methods: {
    find() {
      //alert(this.$store.state.user.list.id)
      this.$http.post('/fuser/select',{id:this.$store.state.user.list.id}).then(data => {
        this.tableData = data
      })
    }
  }
}
</script>

<style scoped>

</style>
